#ifndef HPLCPUMPPANEL_H
#define HPLCPUMPPANEL_H

#include <QWidget>
#include <QLabel>
#include <QLineEdit>
#include <QPushButton>
#include <QHBoxLayout>
#include <QVBoxLayout>

#include "curve.h"

class HplcPumpPanel : public QWidget
{
    Q_OBJECT
public:
    explicit HplcPumpPanel(QWidget *parent = nullptr);
    ~HplcPumpPanel();

signals:

protected:
    virtual void closeEvent(QCloseEvent *event) override;

public slots:
    void onParseCompleted(int id, const QVariant &var);

private:
    QLabel		*m_lbFlow;
    QLineEdit	*m_leFlow;
    QPushButton	*m_pbFlowSend;
    QHBoxLayout	*m_hblFlow;

    QLabel		*m_lbPressureMax;
    QLineEdit	*m_lePressureMax;
    QPushButton	*m_pbPressureMaxSend;
    QHBoxLayout	*m_hblPressureMax;

    QLabel		*m_lbPressureMin;
    QLineEdit	*m_lePressureMin;
    QPushButton	*m_pbPressureMinSend;
    QHBoxLayout	*m_hblPressureMin;

    QPushButton	*m_pbStart;
    QPushButton	*m_pbStop;
    QHBoxLayout	*m_hblStart;

    QLabel		*m_lbCurrentPressure;
    QPushButton	*m_pbPressureClear;
    QPushButton	*m_pbPressureCurve;
    QHBoxLayout	*m_hblCurrentPressure;

    Curve		*m_pressureCurve = nullptr;
};

#endif // HPLCPUMPPANEL_H
